#ifndef GRPOUP_H
#define GRPOUP_H

#include "GroupUser.hpp"
#include <string>
#include <vector>

class Group{ //对应群组表
public:
    Group(int id = -1, std::string name = "", std::string desc = ""){
        id_ = id;
        name_ = name;
        desc_ = desc;
    }

    void set_id(int id){
        id_ = id;
    }

    void set_name(std::string name){
        name_ = name;
    }

    void set_desc(std::string desc){
        desc_ = desc;
    }

    int get_id(){
        return id_;
    }

    std::string get_name(){
        return name_;
    }

    std::string get_desc(){
        return desc_;
    }       
    
    vector<GroupUser> &get_Users(){
        return users_;
    }

private:
    int id_;
    string name_;
    string desc_;
    vector<GroupUser> users_; //群组成员列表,使用groupuser表进行存储
};

#endif 